﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SelectDanNum.aspx.cs" Inherits="Business_SelectDanNum"   %>
<%@ Import Namespace="Common" %>

<%@ Register src="../common/Pager.ascx" tagname="Pager" tagprefix="uc2" %>

<link href="../css/css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
    function returnval(obj) {
        if (obj.value == "")
            alert("请选择合同！");
        else {
            var arr = obj.value.split('$');
            parent.$("#" + "<%=ParentID %>").val(arr[0]);
            if (arr[1]!="")
                parent.$("#" + "<%=UserNameID %>").val(arr[1]);
            if (arr[2] != "" && arr[2] != "0")
                parent.$("#" + "<%=ParentID1 %>").val(arr[2]);
            else
                parent.$("#" + "<%=ParentID1 %>").val("");
            parent.tb_remove();
        }
    }
</script>
<body>
<form id="form1" runat="server">
    <table cellpadding="0" cellspacing="2" width="100%" border="0">
	<tr>
		<td width="100%">
		<table cellpadding="0" cellspacing="0" width="100%" border="0" align="center">
			<tr>
		        <td class="leftTd"  valign="top">
		        <table cellpadding="0" cellspacing="0" width="100%" border="0" align="center">
		        	<tr>
		            	<td class="titleStyle">选择预约序号</td>
		            </tr>
		        </table>
		        <br />
		        <table width="98%" border="0" cellpadding="0" cellspacing="1" align="center" bgcolor="#000066">
	                <tr>
		                <td style="height: 30px;" colspan="10" class="banma22_1">&nbsp;任务类型：
			                <asp:DropDownList ID="ClsID" runat="server">
                              <asp:ListItem Value="">- 请选择任务类型 - </asp:ListItem>
                            </asp:DropDownList>
	                        &nbsp;标题关键字：<asp:TextBox ID="Keyword" runat="server" Width="60px" CssClass="face"></asp:TextBox>&nbsp;&nbsp;
	                        <asp:TextBox ID="OneDate" runat="server" Width="70px" CssClass="face" Text="选择开始日期"></asp:TextBox>
	                        &nbsp;&nbsp;<asp:TextBox ID="TwoDate" runat="server" Width="70px" CssClass="face" Text="选择结束日期"></asp:TextBox>&nbsp;&nbsp;
                            <asp:Button ID="submit" runat="server" Text=" 搜 索 " CssClass="button" 
                                onclick="submit_Click" />
		                </td>
	                </tr>
                    <asp:Repeater ID="Re_News" runat="server">
                       <HeaderTemplate>
                           <tr>
                            <td style="height: 30px; width: 5%;" class="banma1 TextCenters">选择</td>
                            <td style="height: 30px; width: 5%;" class="banma1 TextCenters">序号</td>
                            <td style="height: 30px; width: 8%;" class="banma1 TextCenters">客户名称</td>
		                    <td style="height: 30px; width: 8%;" class="banma1 TextCenters">服务类型</td>
		                    <td style="width: 10%;" class="banma1 TextCenters">预约描述</td>
		                    <td style="width: 15%;" class="banma1 TextCenters">预约处理时段</td>
		                    <td style="width: 8%;" class="banma1 TextCenters">预约状态</td>
		                    <td style="width: 10%;" class="banma1 TextCenters">服务工程师</td>
		                    <td style="width: 8%;" class="banma1 TextCenters">处理时间</td>
		                    <td style="width: 8%;" class="banma1 TextCenters">完成时间</td>
	                       </tr>
                       </HeaderTemplate>
                       <ItemTemplate>
                           <tr>
                            <td class="banma22_2" style="height: 25px; text-align: center;"><input type="radio" id="DanNum" value='<%# GetRadioContent(Eval("DanNum"),Eval("UserCompany"),Eval("Quote_Price")) %>' onclick="returnval(this);" /></td>
                            <td class="banma22_2" style="height: 25px; text-align: center;"><%# Eval("DanNum")%></td>
                            <td class="banma22_2" style="height: 25px; text-align: center;"><%# Eval("UserName") %></td>
                            <td class="banma22_2" style="height: 25px; text-align: center;"><%# Eval("ClsName")%></td>
                            <td class="banma22_2" style="height: 25px; text-align: center;"><%# Eval("Content_Cus")%></td>
		                    <td class="banma22_2" style="height: 25px; text-align: center;"><%# Eval("TechOneTime")%>至<%# Eval("TechTwoTime")%></td>
		                    <td class="banma22_2" style="height: 25px; text-align: center;"><%# Eval("TypeName")%></td>
		                    <td class="banma22_2" style="height: 25px; text-align: center;"><%# Eval("MRealName")%></td>
		                    <td class="banma22_2" style="height: 25px; text-align: center;"><%# Eval("TechThreeTime")%></td>
		                    <td class="banma22_2" style="height: 25px; text-align: center;"><%# Eval("TechFourTime")%></td>
	                       </tr>
                       </ItemTemplate>
                       <AlternatingItemTemplate>
                            <tr>
                            <td class="banma22_2" style="height: 25px; text-align: center;"><input type="radio" id="DanNum" value='<%# GetRadioContent(Eval("DanNum"),Eval("UserCompany"),Eval("Quote_Price")) %>' onclick="returnval(this);" /></td>
                            <td class="banma22_1" style="height: 25px; text-align: center;"><%# Eval("DanNum")%></td>
                            <td class="banma22_1" style="height: 25px; text-align: center;"><%# Eval("UserName") %></td>
                            <td class="banma22_1" style="height: 25px; text-align: center;"><%# Eval("ClsName")%></td>
                            <td class="banma22_1" style="height: 25px; text-align: center;"><%# Eval("Content_Cus")%></td>
		                    <td class="banma22_1" style="height: 25px; text-align: center;"><%# Eval("TechOneTime")%>至<%# Eval("TechTwoTime")%></td>
		                    <td class="banma22_1" style="height: 25px; text-align: center;"><%# Eval("TypeName")%></td>
		                    <td class="banma22_1" style="height: 25px; text-align: center;"><%# Eval("MRealName")%></td>
		                    <td class="banma22_1" style="height: 25px; text-align: center;"><%# Eval("TechThreeTime")%></td>
		                    <td class="banma22_1" style="height: 25px; text-align: center;"><%# Eval("TechFourTime")%></td>
	                       </tr>
                       </AlternatingItemTemplate>
                    </asp:Repeater>
		        </table>
                <uc2:Pager ID="Pager1" runat="server" />
        </td>
    </tr>
</table>
</form>
</body>
